#ifndef _ROD_H
#define _ROD_H

#include "Object.h"

//#define POWERUP_VX	0.1
//#define GRAVITY		0.01

 

class Rod : public Object
{
private:

	int count_frame_rod;
	bool is_left;

	Sprite *p_sprite_rod_v1;
	Sprite *p_sprite_rod_v2;
	Sprite *p_sprite_rod_v3;

public:
	/*
	 *	get/set properties
	 */
	OBJECT_TYPE getObjectType();
	int num_score;

	/*
	 *	Contructor/destructor
	 */
	Rod(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y, bool isLeft, int rod_version);
	~Rod();

	
	/*
	 *	Method
	 */
	 
	void update(list<Object*>* obj_list, DxInput* input, float TPF);
	void updatePosition(list<Object*>* obj_list, DxInput* input, float TPF, int pox_x, int pos_y);

	//Castlevania Rod
	void attack(list<Object*>* obj_list, float time);

	void render(int cameraX, int cameraY);
	void changeState(int state);
};

#endif